import { createSelector } from 'reselect'
//取出state值的相应方法
const login = (state) => state.login;
//组装对象方法
export default  createSelector(
    [login],
    (login) => {
        return {
            isLogin: login.isLogin,
            isLogining: login.isLogining,
            user:login.user,
            userinfo:login.userinfo
        }
    }
)